package com.example.property.service;

import com.example.property.pojo.PageResult;
import com.example.property.pojo.UnpaidOwner;
import com.example.property.pojo.User;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.dao.DuplicateKeyException;

public interface UserService {
    int insertUser(User user) throws
            DuplicateKeyException,Exception;
    int changeUserStatus(User user);
    User queryById(int id);


    PageResult<User> pageOfOwner(int current, int size);


   PageResult<User> pageOfUser(Integer current, Integer
            size, String condition, Integer user_type);

    PageResult<UnpaidOwner> pageOfUnpaidOwnerList(Integer current, Integer size, Integer typeId);

}

